<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="/resources/wangEditor.min.js"></script>
<body>
<div id="test" style="width: 800px; height: 600px"></div>
<script>
    var E=window.wangEditor;
    var editor=new E("#test");
    editor.create();
</script>

</body>
</html>